package com.checking.attendance.service;

import com.checking.attendance.dao.ClockMapper;
import com.checking.attendance.dao.ClockRulesMapper;
import com.checking.attendance.pojo.Clock;
import com.checking.attendance.pojo.ClockRules;
import com.checking.attendance.pojo.Course;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClockService {
    @Autowired
    private ClockMapper clockMapper;

    public int insertSelective(Clock record){
        return clockMapper.insertSelective(record);
    }

    public int deleteByPrimaryKey(String id){
        return clockMapper.deleteByPrimaryKey(id);
    }

    public Clock clockSelectDayAttendance(Clock record){
        return clockMapper.clockSelectDayAttendance(record);
    }

    public int updateByPrimaryKeySelective(Clock record){
        return clockMapper.updateByPrimaryKeySelective(record);
    }

    public List<Clock> queryClockRecord(Clock record){
        return clockMapper.queryClockRecord(record);
    }

    public List<Clock> queryClockRecordAll(){
        return clockMapper.queryClockRecordAll();
    }


    public Clock selectByPrimaryKey(String id){
        return clockMapper.selectByPrimaryKey(id);
    }

    public List<Clock> teacherQueryClockRecord(String courseId){
        return clockMapper.teacherQueryClockRecord(courseId);
    }

}
